import { DocDetail, FormOne, ViewGridDetail, ViewList } from '@icon-park/vue-next';
import { markRaw } from 'vue';

const basicDetail = () => import('@/views/detail/basic_detail/index.vue');
const seniorDetail = () => import('@/views/detail/senior_detail/index.vue');

const pages = {
  path: '/detail',
  name: 'detail',
  redirect: '/detail/basic',
  meta: {
    icon: markRaw(ViewList),
    title: '详情'
  },
  children: [
    {
      path: 'basic',
      name: 'detail_basic',
      meta: {
        icon: markRaw(DocDetail),
        title: '基础详情页'
      },
      component: basicDetail
    },
    {
      path: 'senior',
      name: 'detail_senior',
      meta: {
        icon: markRaw(FormOne),
        title: '高级详情页'
      },
      component: seniorDetail
    }
  ]
};
export default pages;
